import requests
url = "http://47.108.206.100:8080/admin/login"
post_data = {
    "username": "admin",
    "password": "macro123"

}

resp = requests.post(url=url, json=post_data)
print(resp.status_code)
print(resp.json())
print(resp.json().get('code'))
print(resp.json().get('data').get('tokenHead'))

# url = "http://47.108.206.100:8080/admin/login"
# post_data = {
#     "username": "admin",
#     "password": "macro123"}
#
# resp = requests.post(url=url, json=post_data)
# # print(resp.status_code)
# print(resp.json())
# print(resp.json().get('code'))



